package com.cjb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author kuangjian
 * @since 2022-08-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("biz_product")
@ApiModel(value = "Product对象", description = "")
public class Product extends Model<Product> {

    @TableField("id")
    private Long id;

    @ApiModelProperty("商品编号")
    @TableField("p_num")
    private String pNum;

    @ApiModelProperty("商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("图片")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty("规格型号")
    @TableField("model")
    private String model;

    @ApiModelProperty("计算单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("modified_time")
    private Date modifiedTime;

    @ApiModelProperty("1级分类")
    @TableField("one_category_id")
    private Long oneCategoryId;

    @ApiModelProperty("2级分类")
    @TableField("two_category_id")
    private Long twoCategoryId;

    @ApiModelProperty("3级分类")
    @TableField("three_category_id")
    private Long threeCategoryId;

    @ApiModelProperty("是否删除:1物资正常,0:物资回收,2:物资审核中")
    @TableField("status")
    private Integer status;


    @Override
    public Serializable pkVal() {
        return null;
    }

}
